﻿
using System;
//using System.Collections.Generic;
using Iesi.Collections.Generic;


//Nhibernate Code Generation Template 1.0
//author:MythXin
//blog:www.cnblogs.com/MythXin
//Entity Code Generation Template
namespace Cms.Model
{
    //自定义表单表
    public class Sys_Selfform
    {
        public  Sys_Selfform()
        {
            this.Detail = new Iesi.Collections.Generic.HashedSet<Model.Sys_Selfform_Detail>();
            this.Layout = new Iesi.Collections.Generic.HashedSet<Model.Sys_Selfform_Layout>();
        }
        /// <summary>
        /// 主键
        /// </summary>
        public virtual string Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public virtual string Caption { get; set; }
        /// <summary>
        /// 表名
        /// </summary>
        public virtual string Tablename { get; set; }
        /// <summary>
        /// 视图名
        /// </summary>
        public virtual string Viewname { get; set; }
        /// <summary>
        /// 查询脚本
        /// </summary>
        public virtual string Sql { get; set; }
        /// <summary>
        /// 关键字字段
        /// </summary>
        public virtual string Keyfield { get; set; }
        /// <summary>
        /// 编号字段
        /// </summary>
        public virtual string Idfield { get; set; }
        /// <summary>
        /// 标题字段
        /// </summary>
        public virtual string Titlefield { get; set; }
        /// <summary>
        /// 记录类型
        /// </summary>
        public virtual string Rectype { get; set; }
        /// <summary>
        /// 创建人编号字段
        /// </summary>
        public virtual string Createuserfield { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public virtual string Createusernamefield { get; set; }
        /// <summary>
        /// 创建日期字段
        /// </summary>
        public virtual string Createdatefield { get; set; }
        /// <summary>
        /// 数据存储类型
        /// </summary>
        public virtual string Datatype { get; set; }
        /// <summary>
        /// 对象对应的类名
        /// </summary>
        public virtual string ClassName { get; set; }

        /// <summary>
        /// 父节点字段
        /// </summary>
        public virtual string Parentidfield { get; set; }

        /// <summary>
        /// 一个表单可以有多个子表
        /// </summary>
        public virtual ISet<Sys_Selfform_Detail> Detail { get; set; }
        public virtual ISet<Sys_Selfform_Layout> Layout { get; set; }
        /// <summary>
        /// 一个表单可以对应多个列表界面
        /// </summary>
        //public virtual ISet<Sys_Selfform_List_Layout> ListLayOut { get; set; }
    }
}
